Add React Testing Library UI component tests#11
Merged
Conversation
- Install @testing-library/react, @testing-library/user-event, @testing-library/jest-dom, jsdom - Configure Vitest with jsdom environment and jest-dom setup file - Add 22 tests across ChatInput, Message, MessageList, ThemeToggle components Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Install @testing-library/react, @testing-library/user-event, @testing-library/jest-dom, jsdom - Configure Vitest with jsdom environment and jest-dom setup file - Add 22 tests across ChatInput, Message, MessageList, ThemeToggle components Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…rimoire-oracle-web into feature/react-testing-library # Conflicts: # components/MessageList.test.tsx # components/ThemeToggle.test.tsx # package.json # pnpm-lock.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@testing-library/react,@testing-library/user-event,@testing-library/jest-dom, andjsdomas dev dependenciesenvironment: "jsdom"and avitest.setup.tsthat registers jest-dom matchersTest coverage
components/Message.test.tsxcomponents/ChatInput.test.tsxcomponents/MessageList.test.tsxcomponents/ThemeToggle.test.tsxTest plan
pnpm testpasses with 51/51 tests and no warnings🤖 Generated with Claude Code